#pragma once

using namespace Gdiplus;

class Animation
{
private:
	double time = 0;
	int curpic = 0;
	std::wstring picname;
	int num;
	double interval;
	int x, y;
	int width, height;

	Image ** picSet;
public:
	Animation(const std::wstring & picname, int num, double interval, int x, int y);
	~Animation();

	void update(double dtime);
	void draw(Graphics * graphics);
	bool finished();
};